#include<vector>
#include<thread>
#include<iostream>
#include"Singleton.h"
#include"AsyncLogging.h"
#include<mysql/mysql.h>
#include"EventLoop.h"
#include"Server.h"
using namespace std;

int main() 
{
    Singleton<AsyncLogging>::instance().startLog();//开启日志
    EventLoop mainLoop;//定义主循环
    int connthreadNum=4,port=8080,workthreadNum=3,mysqlconnnum=5;
    Server myHTTPServer(&mainLoop, connthreadNum, port,workthreadNum,mysqlconnnum);
    myHTTPServer.start();
}
